From 0b6658ddbb8b42fea34269013247cb0242eefd99 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 23 Jul 2002 04:48:25 +0000 Subject: [PATCH] (face_before_or_after_it_pos): Call FETCH_MULTIBYTE_CHAR with byte postion, not char position. --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index cf538ed9241..f8139626d79 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -2528,7 +2528,7 @@ face_before_or_after_it_pos (it, before_p) suitable for unibyte text if current_buffer is unibyte. */ if (it->multibyte_p) { - int c = FETCH_MULTIBYTE_CHAR (CHARPOS (pos)); + int c = FETCH_MULTIBYTE_CHAR (BYTEPOS (pos)); struct face *face = FACE_FROM_ID (it->f, face_id); face_id = FACE_FOR_CHAR (it->f, face, c); } -- 2.30.2